package org.example.main.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.main.entity.Favorite;
import java.util.List;

@Mapper
public interface FavoriteMapper {
    int insert(Favorite favorite);
    int deleteById(long favoriteId);
    int deleteByTenantAndHouse(long tenantId, long houseId);
    List<Favorite> findAll();
    List<Favorite> findByTenantId(long tenantId);
    List<Favorite> findByHouseId(long houseId);
    Favorite findByTenantAndHouse(long tenantId, long houseId);
}

